Skip to content

Use account-scoped URL prefix for agent API requests#1

Merged
bevenky merged 1 commit intoplivo:mainfrom
amalshaji-plivo:agent-account-url-prefix
Mar 7, 2026
Merged

Use account-scoped URL prefix for agent API requests#1
bevenky merged 1 commit intoplivo:mainfrom
amalshaji-plivo:agent-account-url-prefix

Conversation

@amalshaji-plivo
Copy link
Contributor

Summary

  • Add agents_base_url property to HttpTransport returning {base_url}/v1/Account/{auth_id}
  • Agent endpoints now use /v1/Account/{auth_id}/Agent and /v1/Account/{auth_id}/AgentCall paths instead of /v1/Agent and /v1/AgentCall
  • Account prefix is computed once in AgentClient.__init__ and passed to all sub-resources

Test plan

  • All 11 agent client tests updated and passing

Agent endpoints now use /v1/Account/{auth_id}/Agent and
/v1/Account/{auth_id}/AgentCall paths instead of /v1/Agent
and /v1/AgentCall. Add agents_base_url property to HttpTransport.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bevenky bevenky merged commit ae3c5cd into plivo:main Mar 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants